package com.zzb.learning.feignclient;

import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author zzb
 * @Date 2024/7/11 13:12
 * @Version 1.0
 * @description
 */
@Slf4j
@Component
public class OrderServiceClientFallbackFactory implements FallbackFactory<OrderServiceClient> {
    @Override
    public OrderServiceClient create(Throwable throwable) {
        log.error("远程调用媒资管理服务熔断异常：{}", throwable.getMessage());
        return null;
    }
}
